<?php

namespace app\home\validate;

use think\Validate;

class Giftrecord extends Validate
{
    protected $rule =   [
        'id'  => 'require',
    ];

    protected $message  =   [
        'role.require' => '缺少用户信息',
    ];

    protected $scene = [
        'usergiftlist' => ['id'],
        'sendmsg' => ['phonenum'],
        'findpwd' => ['phonenum','pwd','code'],
        'registermarr' => ['phonenum','pwd','nickname','code','role','wechat_num','headicon'],
        'registerfirst' => ['phonenum','pwd','nickname','code','role','headicon'],
        'loginpwd' => ['phonenum','pwd'],
        'logincode' => ['phonenum','code'],
        'registersecond' => ['tall','weight','monologue','gender','native_place','address','salary','hobby','marriage','age','jobs','education','banks'],
        'registerthird' => ['gender','address','age','jobs','education','banks','skills','introduction','honor'],
        'taps' => ['taptype'],

    ];
}
